package com.beaven.imserver.net.bean.api.account;

import com.google.common.base.Strings;
import com.google.gson.annotations.Expose;

/**
 * author: Beaven
 * time: 2017/5/23 10:01
 */
public class CategoryModel {

  @Expose
  private String name;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public static boolean check(CategoryModel categoryModel) {
    return categoryModel != null && (!Strings.isNullOrEmpty(categoryModel.name));
  }
}
